package com.example.speedwaymanager;

import static org.junit.Assert.*;
import android.graphics.Color;

import org.junit.Test;

public class CGateTest {
	
	@Test
	public void CGate_constructorOK() {
		CGate _testedObj = new CGate("1", "Z");
		assertEquals(1, _testedObj._no);
		assertEquals(EColors.eYellow, _testedObj._color);		
	}

	@Test
	public void CGate_constructorNOK() {
		CGate _testedObj = new CGate("1", "Z");
		assertNotSame(2, _testedObj._no);
		assertEquals(EColors.eYellow, _testedObj._color);		
	}
	
	@Test
	public void CGate_translateColors1() {
		CGate _testedObj = new CGate("1", "Z");		
		assertEquals(1, _testedObj.translateColor(EColors.eYellow));		
	}
}
